#ifndef RING_THREAD_LIST
#define RING_THREAD_LIST
#include "thread.h"


/**type liste de thread*/
typedef struct list * thread_list_t;

struct list* create(struct list *node,thread_t nthread);
void display(struct list *node);
int end(struct list* list , struct list* node);
thread_t head(struct list* list);
struct list* insert(struct list *node,thread_t nthread);
struct list* remove_element(struct list* list,thread_t thread);
struct list* shift(struct list* list);
struct list* free_list(struct list* list);
struct list* move_all(struct list* src,struct list* dest);



#endif/*RING_THREAD_LIST*/


